﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLL
{
	/// <summary>
	/// 配置类
	/// </summary>
	/// <![CDATA[2014-6-27 10:55:39]]>
	public class Config : TonyNet4V1.Configuration
	{
		
		/// <summary>
		/// 一级单位，没有上级单位
		/// </summary>
		/// <![CDATA[2014-7-1 17:44:13]]>
		//public int nDepartment_NoFather = 0;

		/// <summary>
		/// 一级单位，没有上级单位
		/// </summary>
		/// <![CDATA[2014-7-2 09:03:56]]>
		//public string strDepartment_NoFather = "无";
		/// <summary>
		/// 一级单位，没有上级单位
		/// </summary>
		/// <![CDATA[2014-8-11 16:27:59]]>
		public int nDepartment_NoParent = 0;		// 一级单位，没有上级单位
		/// <summary>
		/// 一级单位，没有上级单位
		/// </summary>
		/// <![CDATA[2014-8-11 16:28:46]]>
		public string strDepartment_NoParent = "无";		// 一级单位，没有上级单位

		/// <summary>
		/// 学习用户所属用户组ID
		/// </summary>
		public int nLearnerUserGroupID = 5;

		/// <summary>
		/// 后台栏目
		/// </summary>
		/// <![CDATA[2014-8-1 17:03:54]]>
		public int nColumnSort_Admin = 1;		// 后台栏目
		/// <summary>
		/// 没有上级栏目
		/// </summary>
		/// <![CDATA[2014-8-3 18:34:32]]>
		public int nColumn_NoParent = 0;		// 没有上级栏目
		/// <summary>
		/// 没有上级栏目
		/// </summary>
		/// <![CDATA[2014-8-12 03:35:52]]>
		public string strColumn_NoParent = "无";		// 没有上级栏目
		/// <summary>
		/// 一级栏目
		/// </summary>
		/// <![CDATA[2014-8-9 15:11:30]]>
		public int nColumn_FirstGrade = 1;		// 一级栏目
		/// <summary>
		/// 栏目继承上级栏目权限
		/// </summary>
		/// <![CDATA[2014-8-13 15:11:05]]>
		public int nColumn_Inherit = 1;		// 栏目继承上级栏目权限
		public string strColumn_Inherit = "继承";
		/// <summary>
		/// 栏目不继承上级栏目权限
		/// </summary>
		/// <![CDATA[2014-8-13 15:12:27]]>
		public int nColumn_NoInherit = 0;		// 栏目不继承上级栏目权限
		public string strColumn_NoInHerit = "不继承";
		/// <summary>
		/// 初始用户密码
		/// </summary>
		/// <![CDATA[2014-8-14 11:49:39]]>
		public string strInitPassword;		// 初始用户密码

		/// <summary>
		/// 线上培训
		/// </summary>
		public int nTrainingType_OnLine = 1;		// 线上培训
		/// <summary>
		/// 线下培训
		/// </summary>
		public int nTrainingType_OffLine = 2;		// 线下培训
		public string[] strArrTrainingType = new string[3];

		/// <summary>
		/// 培训班创建
		/// </summary>
		public int nTrainingState_Bulid = 1;		// 培训班创建
		/// <summary>
		/// 培训班报名阶段
		/// </summary>
		public int nTrainingState_Apply = 2;		// 培训班报名阶段
		/// <summary>
		/// 培训班开课阶段
		/// </summary>
		public int nTrainingState_Commencement = 3;		// 培训班开课阶段
		/// <summary>
		/// 培训班结束阶段
		/// </summary>
		public int nTrainingState_End = 4;		// 培训班结束阶段
		public string[] strArrTrainingState = new string[5];

		/// <summary>
		/// 已经报名
		/// </summary>
		public int nSignUp_Yes = 1;
		/// <summary>
		/// 没有报名
		/// </summary>
		public int nSignUp_No = 2;

		/// <summary>
		/// 用户自己注册
		/// </summary>
		public int nRegister_Yes = 1;
		/// <summary>
		/// 用户由系统注册
		/// </summary>
		public int nRegister_No = 2;

		#region 课件
		/// <summary>
		/// 课件公开
		/// </summary>
		public int nCourseware_Public = 1;
		/// <summary>
		/// 课件不公开
		/// </summary>
		public int nCourseware_NoPublic = 2;
		#endregion 课件

		#region 供求信息
		/// <summary>
		/// 供应信息
		/// </summary>
		public int nSupplyDemandType_Supply = 1;
		/// <summary>
		/// 需求信息
		/// </summary>
		public int nSupplyDemandType_Demand = 2;

		public string[] strArrSupplyDemandType = new string[3];
		#endregion 供求信息

		#region 查询权限
		/// <summary>
		/// 全部能查
		/// </summary>
		public int nQueryRight_All = 1;
		/// <summary>
		/// 能查询本单位的
		/// </summary>
		public int nQueryRight_Department = 2;
		/// <summary>
		/// 能查询本人的
		/// </summary>
		public int nQueryRight_MySelf = 3;
		public string[] strArrQueryRight = new string[4];
		#endregion 查询权限

		#region 单位链接
		/// <summary>
		/// 没有上级单位链接
		/// </summary>
		public int nDepartmentLink_NoParent = 0;
		public string strDepartmentLink_NoParent = "无";
		#endregion 单位链接

		#region 留言板状态
		/// <summary>
		/// 没有回复留言
		/// </summary>
		public int nMessage_NoAnswer = 1;
		/// <summary>
		/// 已经回复留言
		/// </summary>
		public int nMessage_Answer = 2;
		public string[] strArrMessageState = new string[3];
		#endregion 留言板状态

		public Config()
			: base()
		{
			strInitPassword = "123456";

			strArrTrainingType[nTrainingType_OnLine] = "线上培训";
			strArrTrainingType[nTrainingType_OffLine] = "线下培训";

			strArrTrainingState[0] = "无";
			strArrTrainingState[nTrainingState_Bulid] = "创立";
			strArrTrainingState[nTrainingState_Apply] = "报名";
			strArrTrainingState[nTrainingState_Commencement] = "开课";
			strArrTrainingState[nTrainingState_End] = "结束";

			strArrSupplyDemandType[nSupplyDemandType_Supply] = "供应";
			strArrSupplyDemandType[nSupplyDemandType_Demand] = "需求";

			strArrQueryRight[nQueryRight_All] = "全部";
			strArrQueryRight[nQueryRight_Department] = "本单位";
			strArrQueryRight[nQueryRight_MySelf] = "本人";

			strArrMessageState[nMessage_NoAnswer] = "没有回复";
			strArrMessageState[nMessage_Answer] = "已经回复";
		}
	}
}
